import React, { Component } from 'react'
import A from './components/A'
import { Context } from './context'

export default class App extends Component {
  render() {
    return (
      // 传递的是一个对象
      <Context.Provider
        value={{
          age: 18,
        }}
      >
        <div>
          App
          <hr />
          <A />
        </div>
      </Context.Provider>
    )
  }
}
